import Vue from '../node_modules/vue/dist/vue'
Vue.config.devtools = true
import App from './component/App.vue'
import 'mint-ui/lib/style.css'

// 加载mui
// import {Header} from 'mint-ui'
// Vue.component(Header.name,Header)
// import {Swipe,SwipeItem } from 'mint-ui'
// Vue.component(Swipe.name,Swipe)
// Vue.component(SwipeItem.name,SwipeItem)
// import {Button} from 'mint-ui'
// Vue.component(Button.name,Button)
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'
import mintUI from 'mint-ui'
import Qs from 'qs'
Vue.use(mintUI)

import axios from 'axios'
import VueAxios from 'vue-axios'
var axios_instance = axios.create({
			transformRequest: [function (data) {
					data = Qs.stringify(data);
					return data;
			}],
			headers:{'Content-Type':'application/x-www-form-urlencoded'}
})	
Vue.use(VueAxios, axios_instance)
import vueRouter from 'vue-router'
import router from './router'

import vuex from 'vuex'
import Store from "./store"
Vue.use(vuex)

var store = new vuex.Store(Store) 

Vue.use(vueRouter)
Vue.filter('dateFormat',function(param){
	return new Date(param).toLocaleString()
})

new Vue({
	el: '#app',
	render: c=>c(App),
	router:router,
	store
})